from django.contrib import admin

# Register your models here.

from .models import JiaoShi,Property,Clears


class PropertyInline(admin.TabularInline):
    model = Property
    extra = 5

class PPPP(admin.TabularInline):
    model = Clears
    extra = 45

class JiaoShiAdmin(admin.ModelAdmin):
    list_display = ['J_numb', 'J_name','J_people','J_LLJS','img']
    inlines = [PropertyInline]
    inlines = [PPPP]

class PropertyAdmin(admin.ModelAdmin):
    list_display = ['P_numb','P_name','P_Jnumb','P_Good','P_img','P_D']

class ClearsAdmin(admin.ModelAdmin):
    list_display = ['C_numb','C_name',"C_Good",'C_Clean',"C_D"]

admin.site.register(JiaoShi,JiaoShiAdmin)
admin.site.register(Property,PropertyAdmin)
admin.site.register(Clears,ClearsAdmin)